<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String openId = (String)request.getSession().getAttribute("openId");
	if(openId==null || openId.equals("")){
	 	openId = (String)request.getParameter("openId");
	 	request.getSession().setAttribute("openId", request.getParameter("openId"));	
	}
	 
%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,,user-scalable=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="http://v3.bootcss.com/favicon.ico">
    <title>最新动态</title>
    <link href="/bootstrapDemo/bootstrap/css/bootstrap.css" rel="stylesheet">
    <link href="/bootstrapDemo/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
    <script src="/bootstrapDemo/js/jquery.js"></script>
    <script src="/bootstrapDemo/bootstrap/js/bootstrap.min.js"></script>
    <style type="text/css">
    	
		 a{
			color: black;		
		}
    </style>
  </head>
  
<body >
<!-- 这里是头部的轮播插件 start-->
      <div id="carousel-example-generic" class="carousel slide" data-ride="carousel" style="padding-bottom: 5px;">
        <ol class="carousel-indicators" >
          <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
          <li data-target="#carousel-example-generic" data-slide-to="1"></li>
          <li data-target="#carousel-example-generic" data-slide-to="2"></li>
          <li data-target="#carousel-example-generic" data-slide-to="3"></li>
          <li data-target="#carousel-example-generic" data-slide-to="4"></li>
        </ol>
        <div class="carousel-inner" style="height: 130px;">
          <div class="carousel-inner">
                  <div class="item active">
                      <img src="/wpages/images/lunbo/01.gif" alt="" style="width: 100%" />
                  </div>
                  <div class="item">
                      <img src="/wpages/images/lunbo/02.gif" alt="" style="width: 100%"/>
                  </div>
                  <div class="item">
                      <img src="/wpages/images/lunbo/03.gif" alt="" style="width: 100%"/>
                  </div>
                   <div class="item">
                      <img src="/wpages/images/lunbo/04.gif" alt="" style="width: 100%"/>
                  </div>
                   <div class="item">
                      <img src="/wpages/images/lunbo/05.gif" alt="" style="width: 100%"/>
                  </div>
              </div>
        </div>
      </div>
      
	<!-- 这里是头部的轮播插件 end-->
<div class="container" style="margin: 5px; padding: 0px;" >
	<div class="list-group" >
	  <a href="#" class="list-group-item active">
	   	新闻列表
	  </a>
		  <s:iterator value="newsList" id="news" status="statu">
		  	<a href="/news/getWNewsById.action?news.id=<s:property value="#news.id"/>" class="list-group-item"><font color="black"><s:property value="#news.STitle"/></font></a>
		  </s:iterator>
	  
	  <ul class="pager" >
		  <li ><a href="/news/getWNewslist.action?currentPage=${pageData.currentPage-1}" ><font color="black">上一页</font></a></li>
		  <li><a href="/news/getWNewslist.action?currentPage=${pageData.currentPage+1}"><font color="black">下一页</font></a></li>
		</ul>
	</div>
</div>

<div id="footer" style="height: 40px; text-align: center;">
 	<p>版权所有@功夫梦·中国 2014-2016</p>
 </div>

<div style="height: 30px;"></div>
<jsp:include page="/wpages/bottom.jsp"></jsp:include>

</body>
</html>